﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Mvc.Models
{
    public class Permission
    {
        [Key]
        public int PermissionId { get; set; }
        public string Controlador { get; set; }
        public string Accion { get; set; }
        [Required(ErrorMessage = "El grupo es requerido")]
        public int GroupId { get; set; }
        public virtual Group Group { get; set; }
        public bool Concedido { get; set; }
        

    }
}